
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.Generalsetting;

public interface GeneralsettingDao extends Dao {

    /**
     * Retrieves all of the generalsettings
     */
    public List getGeneralsettings(Generalsetting generalsetting);

    /**
     * Gets generalsetting's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the generalsetting's id
     * @return generalsetting populated generalsetting object
     */
    public Generalsetting getGeneralsetting(final Long id);

    /**
     * Saves a generalsetting's information
     * @param generalsetting the object to be saved
     */    
    public void saveGeneralsetting(Generalsetting generalsetting);

    /**
     * Removes a generalsetting from the database by id
     * @param id the generalsetting's id
     */
    public void removeGeneralsetting(final Long id);
    
    public Generalsetting getGeneralsettingBySysIdKey(String sysId, String key);
}

